package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(50)" json:"username"`
}

type Video struct {
	gorm.Model
	Title   string `gorm:"type:varchar(100)" json:"title"`
	Content string `gorm:"type:varchar(200)" json:"content"`
	Author  string `gorm:"type:varchar(30)" json:"author"`
	UserId  int    `gorm:"type:int" json:"user_id"`
	User    User   `gorm:"foreignKey:UserId" json:"user"`
}
